<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	String url = request.getScheme() + "://" + request.getServerName()
			+ request.getRequestURI();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<base href="<%=basePath%>" />
		<title>用户管理</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

		<%@ include file="/html/custom/header.jsp"%>

		<link type="text/css" href="<%=basePath%>/html/css/gm/user.css"
			rel="stylesheet" />
		<style>
.td-op {
	width: 300px;
}
</style>
		<script type="text/javascript" src="<%=basePath%>html/js/swss.user.js"></script>
	</head>

	<body>
		<!-- 导航 -->
		<s:action name="showTopNav" executeResult="true" namespace="/user"></s:action>

		<!-- 删除相关 -->
		<%@ include file="/html/custom/formDel.jsp"%>
		<div id="content">
			<div class="toolbar">
				<%@ include file="/html/custom/pagination.jsp"%>
				<span id="btnset" class="btnset"> <a id="btnAddData" href="#">新增用户</a>
					<a id="btnSearchData" href="#">用户查询</a> </span>
			</div>
			<div class="datagird">

				<table class="ui-widget ui-widget-content">
					<thead>
						<tr class="ui-widget-header ">

							<th>
								<a id="th_userName" href="#">用户名<span class="ui-icon"></span>
								</a>
							</th>
							<th>
								<a id="th_deptNo" href="#">所属单位<span class="ui-icon"></span>
								</a>
							</th>
							<th id="th_accperName">
								<a id="th_accperName" href="#">记账人<span class="ui-icon"></span>
								</a>
							</th>

							<th>
								角色
							</th>
							<th>
								<a id="th_fin" href="#">拟核销财务科室<span class="ui-icon"></span>
								</a>
							</th>
							<th class="td-op">
								操作
							</th>
						</tr>
					</thead>
					<tbody>
						<s:iterator value="#request.pagination.result" id="u" >
							<tr>

								<td>
									<s:property value="userName" />
								</td>
								<td>
									<s:property value="dept.deptName" />
								</td>
								<td>
									<s:property value="accperName" />
								</td>
								<td>
									<s:property value="role.roleName" />
								</td>
								<td>
							
								
									<s:iterator value="#request.chargeOffDeptList" id="c">
						
										<s:if test="#c.fieldName4==#u.fin">
											<s:property value="#c.txt" />
										</s:if>
									</s:iterator>
								</td>
								<td class="td-op">
									<a class="btn-form" id="btnDel_<s:property value="id" />"
										href="#"><span class="ui-icon ui-icon-circle-close"></span>删除</a>
									<a class="btn-form" id="btnUpdate_<s:property value="id" />"
										href="#"><span class="ui-icon ui-icon-wrench"></span>修改密码</a>
									<a class="btn-form" id="btnUpdate2_<s:property value="id" />"
										href="#"><span class="ui-icon ui-icon-wrench"></span>选择角色</a>
									<a class="btn-form" id="btnUpdate3_<s:property value="id" />"
										href="#"><span class="ui-icon ui-icon-wrench"></span>修改用户</a>
								</td>

							</tr>
						</s:iterator>


					</tbody>
				</table>
			</div>
			<div class="toolbar">
				<%@ include file="/html/custom/pagination.jsp"%>
			</div>


			<div id="loading"></div>
			<div id="mask"></div>
			<div id="msg"></div>
	</body>
</html>
